package com.clw.utils;


import com.clw.vo.ResultVO;

/**
 * Created by MYQ on 2017/8/30.
 */
public class ResultVOUtils {
    public static ResultVO success(Object object){
        ResultVO resultVO=new ResultVO();
        resultVO.setCode("0");
        resultVO.setMsg("success");
        resultVO.setData(object);
        return resultVO;
    }

    public static ResultVO success(){
        return success(null);
    }

    public static ResultVO error(Integer code, String msg){
        ResultVO resultVO=new ResultVO();
        resultVO.setCode(String.valueOf(code));
        resultVO.setMsg(msg);
        resultVO.setData(null);
        return resultVO;

    }
}
